//--------------------------------------------------------------------
//     Author:Howe
//     Date: 2021-04-13 21:43:59 
//     Description:对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;

namespace Kylin.Wiki.Model.Entity
{
    ///<summary>
    ///sys_Menu
    ///</summary>
    [Table("sys_menu")]
    public class Menu : BaseEntity
    {

        /// <summary>
        /// 菜单ID
        /// </summary>
        [Key]
        [Required]
        [DisplayName("菜单ID")]
        [Column("menu_id")]
        public int MenuID { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [Required]
        [DisplayName("菜单名称")]
        [Column("menu_name")]
        public string MenuName { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [DisplayName("父级ID")]
        [Column("pid")]
        public int? PID { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")]
        [Column("order_num")]
        public int? OrderNum { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [DisplayName("路径")]
        [Column("path")]
        public string Path { get; set; }

        /// <summary>
        /// 菜单类型（M目录 C菜单 F按钮）
        /// </summary>
        [DisplayName("菜单类型（M目录 C菜单 F按钮）")]
        [Column("menu_type")]
        public string MenuType { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [DisplayName("状态")]
        [Column("status")]
        public bool? Status { get; set; }
         
        /// <summary>
        /// Meta
        /// </summary>
        [DisplayName("Meta")]
        [Column("meta")]
        public string Meta { get; set; }

    }
}
